package org.jxht.service.impl;

import org.jxht.dao.FriendDao;
import org.jxht.dto.FriendDto;
import org.jxht.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by huang on 2017/4/19 0019.
 */
@Service
public class FriendServiceImpl implements FriendService {

    @Autowired
    private FriendDao friendDao;

    public void insertFriend(FriendDto dto) {
        friendDao.insertFriendDao(dto);
    }

    public List<FriendDto> queryFriend(FriendDto dto) {
        return friendDao.queryFriendDao(dto);
    }

    public void deleteFriendDao(FriendDto dto) {
        friendDao.deleteFriendDao(dto);
    }
}
